import type { RouteRecordRaw } from 'vue-router'

function Layout() {
  return import('@/layouts/index.vue')
}

const routes: RouteRecordRaw = {
  path: '/common_util_menu',
  component: Layout,
  name: 'commonUtilMenu',
  meta: {
    title: '常用工具',
    icon: 'i-heroicons-solid:menu-alt-3',
  },
  children: [
    {
      path: 'subtitlesFormat',
      name: 'SubtitlesFormat',
      component: () => import('@/views/common_util_menu/subtitles-format.vue'),
      meta: {
        title: '字幕格式化',
      },
    },
    {
      path: 'voiceGenerate',
      name: 'VoiceGenerate',
      component: () => import('@/views/common_util_menu/voice-generate.vue'),
      meta: {
        title: '配音生成',
      },
    },
    {
      path: 'videoGenerate',
      name: 'VideoGenerate',
      component: () => import('@/views/common_util_menu/video-generate.vue'),
      meta: {
        title: '视频生成',
      },
    },
  ],
}

export default routes
